package sample8;

import java.awt.Button;
import java.awt.Frame;
import java.awt.GridLayout;

public class GridLayoutSample {
	public static void main(String[] args) {
		Frame f = new Frame();
		f.setLayout(new GridLayout(4, 3));
		f.add(new Button("1"));
		f.add(new Button("2"));
		f.add(new Button("3"));
		f.add(new Button("4"));
		f.add(new Button("5"));
		f.add(new Button("6"));
		f.add(new Button("7"));
		f.add(new Button("8"));
		f.add(new Button("9"));
		f.add(new Button("*"));
		f.add(new Button("0"));
		f.add(new Button("#"));
		f.setBounds(100, 100, 400, 300);
		f.setVisible(true);
	}
}